<?php

namespace app\api\validate\user;

use think\Validate;

class UserWriterVal extends Validate
{
    public $message=[
        'writer_head_img.require'=>'请上传头像',
        'writer_name.require'=>'请输入艺名',
        'introduction.require'=>'请输入简介',
        'writer_mobile.require'=>'请输入手机号',
        'mobile_code.require'=>'请输入验证码',
        'id_main.require'=>'请上传身份证正面图片',
        'id_side.require'=>'请上传身份证背面图片',
    ];

    public $rule=[
        'writer_head_img'=>'require',
        'writer_name'=>'require',
        'introduction'=>'require',
        'writer_mobile'=>'require',
        'mobile_code'=>'require',
        'id_main'=>'require',
        'id_side'=>'require',
    ];
    public $scene=[
        'create'=>[
            'writer_head_img',
            'writer_name',
            'introduction',
            'writer_mobile',
            'mobile_code',
            'id_main',
            'id_side',
        ],
    ];
}